﻿<Window
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:local="clr-namespace:Chess"
	mc:Ignorable="d" xmlns:Custom="http://schemas.microsoft.com/wpf/2008/toolkit"
	x:Class="Chess.SplashScreen"
	x:Name="Window"
	Title="SplashScreen"
	Width="640" Height="479" AllowsTransparency="True" WindowStyle="None" Background="{x:Null}" BorderThickness="3" WindowStartupLocation="CenterScreen">

	<Window.Resources>
		<Storyboard x:Key="Startup">
			<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="rectangle" Storyboard.TargetProperty="(Rectangle.RadiusX)">
				<SplineDoubleKeyFrame KeyTime="00:00:00" Value="639.5"/>
				<SplineDoubleKeyFrame KeyTime="00:00:00.3000000" Value="639.5"/>
				<SplineDoubleKeyFrame KeyTime="00:00:00.4000000" Value="0"/>
				<SplineDoubleKeyFrame KeyTime="00:00:00.5000000" Value="0"/>
			</DoubleAnimationUsingKeyFrames>
			<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="rectangle" Storyboard.TargetProperty="(Rectangle.RadiusY)">
				<SplineDoubleKeyFrame KeyTime="00:00:00" Value="639.5"/>
				<SplineDoubleKeyFrame KeyTime="00:00:00.3000000" Value="639.5"/>
				<SplineDoubleKeyFrame KeyTime="00:00:00.4000000" Value="0"/>
				<SplineDoubleKeyFrame KeyTime="00:00:00.5000000" Value="0"/>
			</DoubleAnimationUsingKeyFrames>
			<ThicknessAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="rectangle" Storyboard.TargetProperty="(FrameworkElement.Margin)">
				<SplineThicknessKeyFrame KeyTime="00:00:00" Value="-1280,0,0,0"/>
				<SplineThicknessKeyFrame KeyTime="00:00:00.3000000" Value="-640,0,0,0"/>
				<SplineThicknessKeyFrame KeyTime="00:00:00.4000000" Value="-640,0,0,0"/>
				<SplineThicknessKeyFrame KeyTime="00:00:00.5000000" Value="-640,0,0,0"/>
			</ThicknessAnimationUsingKeyFrames>
			<ColorAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="rectangle" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[0].(GradientStop.Color)">
				<SplineColorKeyFrame KeyTime="00:00:00" Value="#BFFFFFFF"/>
				<SplineColorKeyFrame KeyTime="00:00:00.3000000" Value="#BFFFFFFF"/>
				<SplineColorKeyFrame KeyTime="00:00:00.4000000" Value="#BFFFFFFF"/>
				<SplineColorKeyFrame KeyTime="00:00:00.5000000" Value="#FFE0E0E0"/>
			</ColorAnimationUsingKeyFrames>
			<ColorAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="rectangle" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[1].(GradientStop.Color)">
				<SplineColorKeyFrame KeyTime="00:00:00" Value="#BFFFFFFF"/>
				<SplineColorKeyFrame KeyTime="00:00:00.3000000" Value="#BFFFFFFF"/>
				<SplineColorKeyFrame KeyTime="00:00:00.4000000" Value="#BFFFFFFF"/>
				<SplineColorKeyFrame KeyTime="00:00:00.5000000" Value="#99E0E0E0"/>
			</ColorAnimationUsingKeyFrames>
			<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="rectangle" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[0].(GradientStop.Offset)">
				<SplineDoubleKeyFrame KeyTime="00:00:00.4000000" Value="0"/>
				<SplineDoubleKeyFrame KeyTime="00:00:00.5000000" Value="0"/>
			</DoubleAnimationUsingKeyFrames>
			<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="rectangle" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[2].(GradientStop.Offset)">
				<SplineDoubleKeyFrame KeyTime="00:00:00" Value="0.099"/>
				<SplineDoubleKeyFrame KeyTime="00:00:00.3000000" Value="0.099"/>
				<SplineDoubleKeyFrame KeyTime="00:00:00.4000000" Value="0.099"/>
				<SplineDoubleKeyFrame KeyTime="00:00:00.5000000" Value="0.099"/>
			</DoubleAnimationUsingKeyFrames>
			<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="rectangle" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[3].(GradientStop.Offset)">
				<SplineDoubleKeyFrame KeyTime="00:00:00" Value="0.905"/>
				<SplineDoubleKeyFrame KeyTime="00:00:00.3000000" Value="0.901"/>
				<SplineDoubleKeyFrame KeyTime="00:00:00.4000000" Value="0.901"/>
				<SplineDoubleKeyFrame KeyTime="00:00:00.5000000" Value="0.901"/>
			</DoubleAnimationUsingKeyFrames>
			<ColorAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="rectangle" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[2].(GradientStop.Color)">
				<SplineColorKeyFrame KeyTime="00:00:00" Value="#BFFFFFFF"/>
				<SplineColorKeyFrame KeyTime="00:00:00.3000000" Value="#BFFFFFFF"/>
				<SplineColorKeyFrame KeyTime="00:00:00.4000000" Value="#BFFFFFFF"/>
				<SplineColorKeyFrame KeyTime="00:00:00.5000000" Value="#E5E0E0E0"/>
			</ColorAnimationUsingKeyFrames>
			<ColorAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="rectangle" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[3].(GradientStop.Color)">
				<SplineColorKeyFrame KeyTime="00:00:00" Value="#BFFFFFFF"/>
				<SplineColorKeyFrame KeyTime="00:00:00.3000000" Value="#BFFFFFFF"/>
				<SplineColorKeyFrame KeyTime="00:00:00.4000000" Value="#BFFFFFFF"/>
				<SplineColorKeyFrame KeyTime="00:00:00.5000000" Value="#CBE0E0E0"/>
			</ColorAnimationUsingKeyFrames>
			<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="grid" Storyboard.TargetProperty="(UIElement.Opacity)">
				<SplineDoubleKeyFrame KeyTime="00:00:00" Value="0"/>
				<SplineDoubleKeyFrame KeyTime="00:00:00.4000000" Value="0"/>
				<SplineDoubleKeyFrame KeyTime="00:00:00.5000000" Value="1"/>
			</DoubleAnimationUsingKeyFrames>
			<ObjectAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="rectangle" Storyboard.TargetProperty="(FrameworkElement.HorizontalAlignment)">
				<DiscreteObjectKeyFrame KeyTime="00:00:00.4000000" Value="{x:Static HorizontalAlignment.Left}"/>
				<DiscreteObjectKeyFrame KeyTime="00:00:00.5000000" Value="{x:Static HorizontalAlignment.Right}"/>
			</ObjectAnimationUsingKeyFrames>
			<ObjectAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="grid1" Storyboard.TargetProperty="(UIElement.Visibility)">
				<DiscreteObjectKeyFrame KeyTime="00:00:00" Value="{x:Static Visibility.Hidden}"/>
			</ObjectAnimationUsingKeyFrames>
		</Storyboard>
		<Storyboard x:Key="Close">
			<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="rectangle" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[2].(GradientStop.Offset)">
				<SplineDoubleKeyFrame KeyTime="00:00:00.2000000" Value="0.095"/>
			</DoubleAnimationUsingKeyFrames>
			<ColorAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="rectangle" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[2].(GradientStop.Color)">
				<SplineColorKeyFrame KeyTime="00:00:00.1000000" Value="#CCE0E0E0"/>
				<SplineColorKeyFrame KeyTime="00:00:00.2000000" Value="#7FFFFFFF"/>
			</ColorAnimationUsingKeyFrames>
			<ColorAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="rectangle" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[3].(GradientStop.Color)">
				<SplineColorKeyFrame KeyTime="00:00:00.1000000" Value="#CCE0E0E0"/>
				<SplineColorKeyFrame KeyTime="00:00:00.2000000" Value="#7FFFFFFF"/>
			</ColorAnimationUsingKeyFrames>
			<ColorAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="rectangle" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[0].(GradientStop.Color)">
				<SplineColorKeyFrame KeyTime="00:00:00.1000000" Value="#FFE0E0E0"/>
				<SplineColorKeyFrame KeyTime="00:00:00.2000000" Value="#7FFFFFFF"/>
			</ColorAnimationUsingKeyFrames>
			<ThicknessAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="rectangle" Storyboard.TargetProperty="(FrameworkElement.Margin)">
				<SplineThicknessKeyFrame KeyTime="00:00:00.1000000" Value="-640,0,0,0"/>
				<SplineThicknessKeyFrame KeyTime="00:00:00.2000000" Value="-640,0,0,0"/>
			</ThicknessAnimationUsingKeyFrames>
			<ColorAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="rectangle" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[1].(GradientStop.Color)">
				<SplineColorKeyFrame KeyTime="00:00:00.1000000" Value="#99E0E0E0"/>
				<SplineColorKeyFrame KeyTime="00:00:00.2000000" Value="#7FFFFFFF"/>
			</ColorAnimationUsingKeyFrames>
			<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="rectangle" Storyboard.TargetProperty="(Rectangle.RadiusX)">
				<SplineDoubleKeyFrame KeyTime="00:00:00.1000000" Value="0"/>
				<SplineDoubleKeyFrame KeyTime="00:00:00.2000000" Value="0"/>
			</DoubleAnimationUsingKeyFrames>
			<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="rectangle" Storyboard.TargetProperty="(Rectangle.RadiusY)">
				<SplineDoubleKeyFrame KeyTime="00:00:00.1000000" Value="0"/>
				<SplineDoubleKeyFrame KeyTime="00:00:00.2000000" Value="0"/>
			</DoubleAnimationUsingKeyFrames>
			<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="grid" Storyboard.TargetProperty="(UIElement.Opacity)">
				<SplineDoubleKeyFrame KeyTime="00:00:00" Value="1"/>
				<SplineDoubleKeyFrame KeyTime="00:00:00.1000000" Value="0"/>
			</DoubleAnimationUsingKeyFrames>
		</Storyboard>
		<Storyboard x:Key="chessEnter">
			<ObjectAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="chess" Storyboard.TargetProperty="(local:Square.HighlightMode)">
				<DiscreteObjectKeyFrame KeyTime="00:00:00" Value="{x:Static local:SquareDisplayMode.Selected}"/>
			</ObjectAnimationUsingKeyFrames>
		</Storyboard>
		<Storyboard x:Key="chessLeave"/>
		<Storyboard x:Key="checkersEnter">
			<ObjectAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="checkers" Storyboard.TargetProperty="(local:Square.HighlightMode)">
				<DiscreteObjectKeyFrame KeyTime="00:00:00" Value="{x:Static local:SquareDisplayMode.Selected}"/>
			</ObjectAnimationUsingKeyFrames>
		</Storyboard>
		<Storyboard x:Key="checkerLeave"/>
		<Storyboard x:Key="ShowGame">
			<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="grid" Storyboard.TargetProperty="(UIElement.Opacity)">
				<SplineDoubleKeyFrame KeyTime="00:00:00" Value="1"/>
				<SplineDoubleKeyFrame KeyTime="00:00:00.1000000" Value="0"/>
			</DoubleAnimationUsingKeyFrames>
			<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="Window" Storyboard.TargetProperty="(FrameworkElement.Width)">
				<SplineDoubleKeyFrame KeyTime="00:00:00.2000000" Value="1300"/>
			</DoubleAnimationUsingKeyFrames>
			<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="Window" Storyboard.TargetProperty="(FrameworkElement.Height)">
				<SplineDoubleKeyFrame KeyTime="00:00:00.2000000" Value="840"/>
			</DoubleAnimationUsingKeyFrames>
			<ObjectAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="grid" Storyboard.TargetProperty="(UIElement.Visibility)">
				<DiscreteObjectKeyFrame KeyTime="00:00:00" Value="{x:Static Visibility.Visible}"/>
				<DiscreteObjectKeyFrame KeyTime="00:00:00.1000000" Value="{x:Static Visibility.Hidden}"/>
			</ObjectAnimationUsingKeyFrames>
			<ObjectAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="grid1" Storyboard.TargetProperty="(UIElement.Visibility)">
				<DiscreteObjectKeyFrame KeyTime="00:00:00" Value="{x:Static Visibility.Visible}"/>
			</ObjectAnimationUsingKeyFrames>
			<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="grid1" Storyboard.TargetProperty="(UIElement.Opacity)">
				<SplineDoubleKeyFrame KeyTime="00:00:00.0000000" Value="0"/>
				<SplineDoubleKeyFrame KeyTime="00:00:00.2000000" Value="0"/>
				<SplineDoubleKeyFrame KeyTime="00:00:00.3000000" Value="1"/>
			</DoubleAnimationUsingKeyFrames>
			<ObjectAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="rectangle" Storyboard.TargetProperty="(FrameworkElement.HorizontalAlignment)">
				<DiscreteObjectKeyFrame KeyTime="00:00:00" Value="{x:Static HorizontalAlignment.Stretch}"/>
				<DiscreteObjectKeyFrame KeyTime="00:00:00.2000000" Value="{x:Static HorizontalAlignment.Stretch}"/>
			</ObjectAnimationUsingKeyFrames>
			<ThicknessAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="rectangle" Storyboard.TargetProperty="(FrameworkElement.Margin)">
				<SplineThicknessKeyFrame KeyTime="00:00:00" Value="0"/>
				<SplineThicknessKeyFrame KeyTime="00:00:00.2000000" Value="0"/>
			</ThicknessAnimationUsingKeyFrames>
			<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="rectangle" Storyboard.TargetProperty="(FrameworkElement.Width)">
				<SplineDoubleKeyFrame KeyTime="00:00:00" Value="1300"/>
				<SplineDoubleKeyFrame KeyTime="00:00:00.2000000" Value="1300"/>
			</DoubleAnimationUsingKeyFrames>
		</Storyboard>
	</Window.Resources>
	<Window.Triggers>
		<EventTrigger RoutedEvent="FrameworkElement.Loaded">
			<BeginStoryboard x:Name="Startup_BeginStoryboard" Storyboard="{StaticResource Startup}"/>
		</EventTrigger>
		<EventTrigger RoutedEvent="ButtonBase.Click" SourceName="exitBtn">
			<BeginStoryboard x:Name="Close_BeginStoryboard1" Storyboard="{StaticResource ShowGame}"/>
		</EventTrigger>
		<EventTrigger RoutedEvent="Mouse.MouseEnter" SourceName="chess">
			<StopStoryboard BeginStoryboardName="chessLeave_BeginStoryboard"/>
			<BeginStoryboard x:Name="chessEnter_BeginStoryboard1" Storyboard="{StaticResource chessEnter}"/>
		</EventTrigger>
		<EventTrigger RoutedEvent="Mouse.MouseLeave" SourceName="chess">
			<StopStoryboard BeginStoryboardName="chessEnter_BeginStoryboard1"/>
			<BeginStoryboard x:Name="chessLeave_BeginStoryboard" Storyboard="{StaticResource chessLeave}"/>
		</EventTrigger>
		<EventTrigger RoutedEvent="Mouse.MouseEnter" SourceName="checkers">
			<StopStoryboard BeginStoryboardName="checkerLeave_BeginStoryboard1"/>
			<BeginStoryboard x:Name="checkersEnter_BeginStoryboard" Storyboard="{StaticResource checkersEnter}"/>
		</EventTrigger>
		<EventTrigger RoutedEvent="Mouse.MouseLeave" SourceName="checkers">
			<StopStoryboard BeginStoryboardName="checkersEnter_BeginStoryboard"/>
			<BeginStoryboard x:Name="checkerLeave_BeginStoryboard1" Storyboard="{StaticResource checkerLeave}"/>
		</EventTrigger>
	</Window.Triggers>
	<Window.Effect>
		<DropShadowEffect RenderingBias="Quality" ShadowDepth="3"/>
	</Window.Effect>
	<Grid x:Name="LayoutRoot">
		<Rectangle x:Name="rectangle" HorizontalAlignment="Left" Margin="-640,0,0,0" RenderTransformOrigin="0.5,0.5" d:LayoutOverrides="VerticalAlignment" MouseLeftButtonDown="Rectangle_MouseLeftButtonDown" Width="1280">
			<Rectangle.RenderTransform>
				<TransformGroup>
					<ScaleTransform ScaleX="1" ScaleY="1"/>
					<SkewTransform AngleX="0" AngleY="0"/>
					<RotateTransform Angle="0"/>
					<TranslateTransform/>
				</TransformGroup>
			</Rectangle.RenderTransform>
			<Rectangle.Fill>
				<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
					<GradientStop Color="#FFE0E0E0"/>
					<GradientStop Color="#99E0E0E0" Offset="1"/>
					<GradientStop Color="#E5E0E0E0" Offset="0.099"/>
					<GradientStop Color="#E5E0E0E0" Offset="0.875"/>
				</LinearGradientBrush>
			</Rectangle.Fill>
		</Rectangle>
		<Grid x:Name="grid" Margin="50">
			<Grid.ColumnDefinitions>
				<ColumnDefinition Width="266.137"/>
				<ColumnDefinition Width="269.863"/>
			</Grid.ColumnDefinitions>
			<Grid.RowDefinitions>
				<RowDefinition Height="63.41"/>
				<RowDefinition Height="267.486"/>
				<RowDefinition Height="42.104"/>
			</Grid.RowDefinitions>
			<TextBlock Margin="24.625,8,24.965,0" VerticalAlignment="Top" Grid.ColumnSpan="2" FontFamily="{DynamicResource MV Boli font}" FontSize="29.333" FontWeight="Bold" Text="Welcome to Arthur's board games" TextWrapping="Wrap" d:LayoutOverrides="Width">
				<TextBlock.Foreground>
					<ImageBrush Stretch="UniformToFill" TileMode="Tile" ImageSource="images/LetterBg.png"/>
				</TextBlock.Foreground>
				<TextBlock.Effect>
					<DropShadowEffect/>
				</TextBlock.Effect>
			</TextBlock>
			<Button x:Name="exitBtn" HorizontalAlignment="Right" Margin="0,8,8,8" Width="75" Content="Exit" Grid.Column="1" Grid.Row="2" d:LayoutOverrides="Height"/>
			<local:Square x:Name="chess" Margin="6" Grid.Row="1" Image="{DynamicResource ChessLogo}" MouseLeftButtonDown="Chess_MouseLeftButtonDown" />
			<local:Square x:Name="checkers" Margin="6" Grid.Column="1" Grid.Row="1" Image="{DynamicResource CheckersLogo}" MouseLeftButtonDown="Checkers_MouseLeftButtonDown" />
				
		</Grid>
		<Grid x:Name="grid1" d:LayoutOverrides="HorizontalMargin" Visibility="Visible" Opacity="1">
			<Grid x:Name="grid_Copy" Margin="8,8,-193,-353" d:LayoutOverrides="Width, Height" VerticalAlignment="Top" HorizontalAlignment="Left" >
				<Grid.Background>
					<ImageBrush ImageSource="images\framedchessboard.png" />
				</Grid.Background>
				<Grid.RowDefinitions>
					<RowDefinition Height="49" MaxHeight="49" MinHeight="49"/>
					<RowDefinition/>
					<RowDefinition Height="49" MaxHeight="49" MinHeight="49"/>
				</Grid.RowDefinitions>
				<Grid.ColumnDefinitions>
					<ColumnDefinition MaxWidth="50" MinWidth="50" Width="50"/>
					<ColumnDefinition/>
					<ColumnDefinition MaxWidth="51" MinWidth="51" Width="51"/>
				</Grid.ColumnDefinitions>
				<Grid x:Name="Gameboard" Grid.Column="1" Grid.Row="1" MouseRightButtonDown="Gameboard_MouseRightButtonDown" MouseLeftButtonDown="Gameboard_MouseLeftButtonDown" >
					<Grid.Background>
						<ImageBrush ImageSource="images\chessboard.png" />
					</Grid.Background>
					<Grid.RowDefinitions>
						<RowDefinition MinHeight="90" />
						<RowDefinition MinHeight="90" />
						<RowDefinition MinHeight="90" />
						<RowDefinition MinHeight="90" />
						<RowDefinition MinHeight="90" />
						<RowDefinition MinHeight="90" />
						<RowDefinition MinHeight="90" />
						<RowDefinition MinHeight="90" />
					</Grid.RowDefinitions>
					<Grid.ColumnDefinitions>
						<ColumnDefinition MinWidth="90" />
						<ColumnDefinition MinWidth="90" />
						<ColumnDefinition MinWidth="90" />
						<ColumnDefinition MinWidth="90" />
						<ColumnDefinition MinWidth="90" />
						<ColumnDefinition MinWidth="90" />
						<ColumnDefinition MinWidth="90" />
						<ColumnDefinition MinWidth="90" />
					</Grid.ColumnDefinitions>
				</Grid>
				<Border Grid.Column="1" Grid.Row="1" BorderBrush="Black" BorderThickness="2" Visibility="Hidden"/>
				<UniformGrid Grid.Column="1" Grid.Row="2" Columns="8" Rows="1">
					<TextBlock HorizontalAlignment="Center" Text="A" TextWrapping="Wrap" VerticalAlignment="Center" FontSize="42.667" FontWeight="Bold" FontFamily="{DynamicResource MV Boli font}">
						<TextBlock.Foreground>
							<ImageBrush Stretch="None" ImageSource="{DynamicResource Letter Background}" />
						</TextBlock.Foreground>
					</TextBlock>
					<TextBlock HorizontalAlignment="Center" Text="B" TextWrapping="Wrap" VerticalAlignment="Center" FontSize="42.667" FontWeight="Bold" FontFamily="{DynamicResource MV Boli font}">
						<TextBlock.Foreground>
							<ImageBrush Stretch="None" ImageSource="{DynamicResource Letter Background}" />
						</TextBlock.Foreground>
					</TextBlock>
					<TextBlock HorizontalAlignment="Center" Text="C" TextWrapping="Wrap" VerticalAlignment="Center" FontSize="42.667" FontWeight="Bold" FontFamily="{DynamicResource MV Boli font}">
						<TextBlock.Foreground>
							<ImageBrush Stretch="None" ImageSource="{DynamicResource Letter Background}" />
						</TextBlock.Foreground>
					</TextBlock>
					<TextBlock HorizontalAlignment="Center" Text="D" TextWrapping="Wrap" VerticalAlignment="Center" FontSize="42.667" FontWeight="Bold" FontFamily="{DynamicResource MV Boli font}">
						<TextBlock.Foreground>
							<ImageBrush Stretch="None" ImageSource="{DynamicResource Letter Background}" />
						</TextBlock.Foreground>
					</TextBlock>
					<TextBlock HorizontalAlignment="Center" Text="E" TextWrapping="Wrap" VerticalAlignment="Center" FontSize="42.667" FontWeight="Bold" FontFamily="{DynamicResource MV Boli font}">
						<TextBlock.Foreground>
							<ImageBrush Stretch="None" ImageSource="{DynamicResource Letter Background}" />
						</TextBlock.Foreground>
					</TextBlock>
					<TextBlock HorizontalAlignment="Center" Text="F" TextWrapping="Wrap" VerticalAlignment="Center" FontSize="42.667" FontWeight="Bold" FontFamily="{DynamicResource MV Boli font}">
						<TextBlock.Foreground>
							<ImageBrush Stretch="None" ImageSource="{DynamicResource Letter Background}" />
						</TextBlock.Foreground>
					</TextBlock>
					<TextBlock HorizontalAlignment="Center" Text="G" TextWrapping="Wrap" VerticalAlignment="Center" FontSize="42.667" FontWeight="Bold" FontFamily="{DynamicResource MV Boli font}">
						<TextBlock.Foreground>
							<ImageBrush Stretch="None" ImageSource="{DynamicResource Letter Background}" />
						</TextBlock.Foreground>
					</TextBlock>
					<TextBlock HorizontalAlignment="Center" Text="H" TextWrapping="Wrap" VerticalAlignment="Center" FontSize="42.667" FontWeight="Bold" FontFamily="{DynamicResource MV Boli font}">
						<TextBlock.Foreground>
							<ImageBrush Stretch="None" ImageSource="{DynamicResource Letter Background}" />
						</TextBlock.Foreground>
					</TextBlock>
				</UniformGrid>
				<UniformGrid Grid.Column="1" Columns="8" Rows="1" RenderTransformOrigin="0.5,0.5">
					<UniformGrid.RenderTransform>
						<TransformGroup>
							<ScaleTransform/>
							<SkewTransform/>
							<RotateTransform Angle="180"/>
							<TranslateTransform/>
						</TransformGroup>
					</UniformGrid.RenderTransform>
					<TextBlock HorizontalAlignment="Center" Text="H" TextWrapping="Wrap" VerticalAlignment="Center" FontSize="42.667" FontWeight="Bold" FontFamily="{DynamicResource MV Boli font}" Foreground="{DynamicResource WoodLetter}"/>
					<TextBlock HorizontalAlignment="Center" Text="G" TextWrapping="Wrap" VerticalAlignment="Center" FontSize="42.667" FontWeight="Bold" FontFamily="{DynamicResource MV Boli font}">
						<TextBlock.Foreground>
							<ImageBrush Stretch="None" ImageSource="{DynamicResource Letter Background}" />
						</TextBlock.Foreground>
					</TextBlock>
					<TextBlock HorizontalAlignment="Center" Text="F" TextWrapping="Wrap" VerticalAlignment="Center" FontSize="42.667" FontWeight="Bold" FontFamily="{DynamicResource MV Boli font}">
						<TextBlock.Foreground>
							<ImageBrush Stretch="None" ImageSource="{DynamicResource Letter Background}" />
						</TextBlock.Foreground>
					</TextBlock>
					<TextBlock HorizontalAlignment="Center" Text="E" TextWrapping="Wrap" VerticalAlignment="Center" FontSize="42.667" FontWeight="Bold" FontFamily="{DynamicResource MV Boli font}">
						<TextBlock.Foreground>
							<ImageBrush Stretch="None" ImageSource="{DynamicResource Letter Background}" />
						</TextBlock.Foreground>
					</TextBlock>
					<TextBlock HorizontalAlignment="Center" Text="D" TextWrapping="Wrap" VerticalAlignment="Center" FontSize="42.667" FontWeight="Bold" FontFamily="{DynamicResource MV Boli font}">
						<TextBlock.Foreground>
							<ImageBrush Stretch="None" ImageSource="{DynamicResource Letter Background}" />
						</TextBlock.Foreground>
					</TextBlock>
					<TextBlock HorizontalAlignment="Center" Text="C" TextWrapping="Wrap" VerticalAlignment="Center" FontSize="42.667" FontWeight="Bold" FontFamily="{DynamicResource MV Boli font}">
						<TextBlock.Foreground>
							<ImageBrush Stretch="None" ImageSource="{DynamicResource Letter Background}" />
						</TextBlock.Foreground>
					</TextBlock>
					<TextBlock HorizontalAlignment="Center" Text="B" TextWrapping="Wrap" VerticalAlignment="Center" FontSize="42.667" FontWeight="Bold" FontFamily="{DynamicResource MV Boli font}">
						<TextBlock.Foreground>
							<ImageBrush Stretch="None" ImageSource="{DynamicResource Letter Background}" />
						</TextBlock.Foreground>
					</TextBlock>
					<TextBlock HorizontalAlignment="Center" Text="A" TextWrapping="Wrap" VerticalAlignment="Center" FontSize="42.667" FontWeight="Bold" FontFamily="{DynamicResource MV Boli font}" >
						<TextBlock.Foreground>
							<ImageBrush Stretch="None" ImageSource="{DynamicResource Letter Background}" />
						</TextBlock.Foreground>
					</TextBlock>
				</UniformGrid>
				<UniformGrid RenderTransformOrigin="0.5,0.5" Grid.Column="2" Grid.Row="1" Columns="1" Rows="8">
					<UniformGrid.RenderTransform>
						<TransformGroup>
							<ScaleTransform/>
							<SkewTransform/>
							<RotateTransform Angle="180"/>
							<TranslateTransform/>
						</TransformGroup>
					</UniformGrid.RenderTransform>
					<TextBlock Margin="0,0,8,0" VerticalAlignment="Center" Text="1" TextAlignment="Center" TextWrapping="Wrap" FontSize="42.667" FontWeight="Bold" FontFamily="{DynamicResource MV Boli font}">
						<TextBlock.Foreground>
							<ImageBrush Stretch="None" ImageSource="{DynamicResource Letter Background}" />
						</TextBlock.Foreground>
					</TextBlock>
					<TextBlock Margin="0,0,8,0" VerticalAlignment="Center" Text="2" TextAlignment="Center" TextWrapping="Wrap" FontSize="42.667" FontWeight="Bold" FontFamily="{DynamicResource MV Boli font}">
						<TextBlock.Foreground>
							<ImageBrush Stretch="None" ImageSource="{DynamicResource Letter Background}" />
						</TextBlock.Foreground>
					</TextBlock>
					<TextBlock Margin="0,0,8,0" VerticalAlignment="Center" Text="3" TextAlignment="Center" TextWrapping="Wrap" FontSize="42.667" FontWeight="Bold" FontFamily="{DynamicResource MV Boli font}">
						<TextBlock.Foreground>
							<ImageBrush Stretch="None" ImageSource="{DynamicResource Letter Background}" />
						</TextBlock.Foreground>
					</TextBlock>
					<TextBlock Margin="0,0,8,0" VerticalAlignment="Center" Text="4" TextAlignment="Center" TextWrapping="Wrap" FontSize="42.667" FontWeight="Bold" FontFamily="{DynamicResource MV Boli font}">
						<TextBlock.Foreground>
							<ImageBrush Stretch="None" ImageSource="{DynamicResource Letter Background}" />
						</TextBlock.Foreground>
					</TextBlock>
					<TextBlock Margin="0,0,8,0" VerticalAlignment="Center" Text="5" TextAlignment="Center" TextWrapping="Wrap" FontSize="42.667" FontWeight="Bold" FontFamily="{DynamicResource MV Boli font}">
						<TextBlock.Foreground>
							<ImageBrush Stretch="None" ImageSource="{DynamicResource Letter Background}" />
						</TextBlock.Foreground>
					</TextBlock>
					<TextBlock Margin="0,0,8,0" VerticalAlignment="Center" Text="6" TextAlignment="Center" TextWrapping="Wrap" FontSize="42.667" FontWeight="Bold" FontFamily="{DynamicResource MV Boli font}">
						<TextBlock.Foreground>
							<ImageBrush Stretch="None" ImageSource="{DynamicResource Letter Background}" />
						</TextBlock.Foreground>
					</TextBlock>
					<TextBlock Margin="0,0,8,0" VerticalAlignment="Center" Text="7" TextAlignment="Center" TextWrapping="Wrap" FontSize="42.667" FontWeight="Bold" FontFamily="{DynamicResource MV Boli font}">
						<TextBlock.Foreground>
							<ImageBrush Stretch="None" ImageSource="{DynamicResource Letter Background}" />
						</TextBlock.Foreground>
					</TextBlock>
					<TextBlock Margin="0,0,8,0" VerticalAlignment="Center" Text="8" TextAlignment="Center" TextWrapping="Wrap" FontSize="42.667" FontWeight="Bold" FontFamily="{DynamicResource MV Boli font}">
						<TextBlock.Foreground>
							<ImageBrush Stretch="None" ImageSource="{DynamicResource Letter Background}" />
						</TextBlock.Foreground>
					</TextBlock>
				</UniformGrid>
				<UniformGrid Grid.Row="1" Columns="1" Rows="8">
					<TextBlock HorizontalAlignment="Center" Text="8" TextWrapping="Wrap" VerticalAlignment="Center" FontSize="42.667" FontWeight="Bold" FontFamily="{DynamicResource MV Boli font}">
						<TextBlock.Foreground>
							<ImageBrush Stretch="None" ImageSource="{DynamicResource Letter Background}" />
						</TextBlock.Foreground>
					</TextBlock>
					<TextBlock HorizontalAlignment="Center" Text="7" TextWrapping="Wrap" VerticalAlignment="Center" FontSize="42.667" FontWeight="Bold" FontFamily="{DynamicResource MV Boli font}">
						<TextBlock.Foreground>
							<ImageBrush Stretch="None" ImageSource="{DynamicResource Letter Background}" />
						</TextBlock.Foreground>
					</TextBlock>
					<TextBlock HorizontalAlignment="Center" Text="6" TextWrapping="Wrap" VerticalAlignment="Center" FontSize="42.667" FontWeight="Bold" FontFamily="{DynamicResource MV Boli font}">
						<TextBlock.Foreground>
							<ImageBrush Stretch="None" ImageSource="{DynamicResource Letter Background}" />
						</TextBlock.Foreground>
					</TextBlock>
					<TextBlock HorizontalAlignment="Center" Text="5" TextWrapping="Wrap" VerticalAlignment="Center" FontSize="42.667" FontWeight="Bold" FontFamily="{DynamicResource MV Boli font}">
						<TextBlock.Foreground>
							<ImageBrush Stretch="None" ImageSource="{DynamicResource Letter Background}" />
						</TextBlock.Foreground>
					</TextBlock>
					<TextBlock HorizontalAlignment="Center" Text="4" TextWrapping="Wrap" VerticalAlignment="Center" FontSize="42.667" FontWeight="Bold" FontFamily="{DynamicResource MV Boli font}">
						<TextBlock.Foreground>
							<ImageBrush Stretch="None" ImageSource="{DynamicResource Letter Background}" />
						</TextBlock.Foreground>
					</TextBlock>
					<TextBlock HorizontalAlignment="Center" Text="3" TextWrapping="Wrap" VerticalAlignment="Center" FontSize="42.667" FontWeight="Bold" FontFamily="{DynamicResource MV Boli font}">
						<TextBlock.Foreground>
							<ImageBrush Stretch="None" ImageSource="{DynamicResource Letter Background}" />
						</TextBlock.Foreground>
					</TextBlock>
					<TextBlock HorizontalAlignment="Center" Text="2" TextWrapping="Wrap" VerticalAlignment="Center" FontSize="42.667" FontWeight="Bold" FontFamily="{DynamicResource MV Boli font}">
						<TextBlock.Foreground>
							<ImageBrush Stretch="None" ImageSource="{DynamicResource Letter Background}" />
						</TextBlock.Foreground>
					</TextBlock>
					<TextBlock HorizontalAlignment="Center" Text="1" TextWrapping="Wrap" VerticalAlignment="Center" FontSize="42.667" FontWeight="Bold" FontFamily="{DynamicResource MV Boli font}">
						<TextBlock.Foreground>
							<ImageBrush Stretch="None" ImageSource="{DynamicResource Letter Background}" />
						</TextBlock.Foreground>
					</TextBlock>
				</UniformGrid>
			</Grid>
			<local:GameClock x:Name="gameClock" HorizontalAlignment="Left" Margin="837,8,-254,0" VerticalAlignment="Top"/>
			<Button Height="23" x:Name="newGameButton" Click="NewGameButton_Click" Content="New Game" Width="75" HorizontalAlignment="Left" Margin="8,8,0,0" VerticalAlignment="Top"/>
		</Grid>
	</Grid>
</Window>